home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Apple / Apple II TNs(Text).cpt / Apple II TNs(Text) / IIGS / TN.IIGS.060 / TN.IIGS.060
Encoding:
Text File  |  1989-11-15  |  1.5 KB  |  36 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #60:    Care and Feeding of NewMenu
  9.  
  10. Written by:    Dave Lyons                                           July 1989
  11.  
  12. This Technical Note discusses NewMenu in System Software 5.0 and earlier, 
  13. where it does not expect its string parameter to cross a bank boundary.  Make 
  14. sure it doesn't.
  15. _____________________________________________________________________________
  16.  
  17. NewMenu takes a pointer to a string; this string must not cross a bank 
  18. boundary.  If it does, a menu containing random garbage may result.
  19.  
  20. If your NewMenu strings are contained in your code segments, everything is 
  21. fine--code segments cannot cross bank boundaries.  Depending on your 
  22. development environment, strings that are not in a code segment may or may not 
  23. be allowed to cross bank boundaries.  If you can find no other way to 
  24. guarantee the strings will not cross a bank boundary, use NewHandle to 
  25. allocate blocks with attributes $4010 (fixed, no bank cross) and copy the 
  26. strings to these blocks.
  27.  
  28. If you create menus from resources, be sure the resources have their 
  29. noBankCross attribute bits set.  Note that a memory block that can cross a 
  30. bank boundary usually does not, so your application may be working by 
  31. accident.
  32.  
  33.  
  34. Further Reference
  35. _____________________________________________________________________________
  36.     o    Apple IIGS Toolbox Reference, Volume 1